<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单编辑 - GVA智能表单</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .browser-mockup {
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            margin: 2rem 0;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        }
        .browser-header {
            padding: 0.5rem 1rem;
            background: #f3f4f6;
            border-bottom: 1px solid #e5e7eb;
        }
        .browser-dots {
            display: flex;
            gap: 0.5rem;
        }
        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }
        .red-dot { background: #ff605c; }
        .yellow-dot { background: #ffbd44; }
        .green-dot { background: #00ca4e; }
        .field-draggable {
            cursor: grab;
            transition: all 0.2s;
        }
        .field-draggable:active {
            cursor: grabbing;
            transform: scale(0.98);
        }
    </style>
</head>
<body class="bg-white">
    <div class="browser-mockup">
        <div class="browser-header">
            <div class="browser-dots">
                <div class="dot red-dot"></div>
                <div class="dot yellow-dot"></div>
                <div class="dot green-dot"></div>
            </div>
        </div>
        <div class="grid grid-cols-3 gap-4 p-6">
            <!-- 侧边栏：字段库 -->
            <div class="bg-gray-50 p-4 rounded-lg">
                <h3 class="text-lg font-medium text-gray-800 mb-4">字段库</h3>
                <div class="space-y-2">
                    <div class="field-draggable bg-white p-3 rounded shadow-sm">
                        <i class="fas fa-font text-gray-500 mr-2"></i>文本输入
                    </div>
                    <div class="field-draggable bg-white p-3 rounded shadow-sm">
                        <i class="fas fa-check-circle text-gray-500 mr-2"></i>单选按钮
                    </div>
                    <div class="field-draggable bg-white p-3 rounded shadow-sm">
                        <i class="fas fa-check-double text-gray-500 mr-2"></i>多选框
                    </div>
                </div>
            </div>

            <!-- 主编辑区：表单画布 -->
            <div class="col-span-2 bg-gray-100 p-4 rounded-lg">
                <h3 class="text-lg font-medium text-gray-800 mb-4">表单画布</h3>
                <div class="bg-white p-6 rounded-lg min-h-[400px]">
                    <div class="space-y-4">
                        <div class="border p-3 rounded">
                            <p class="text-sm text-gray-500">拖拽字段到此处添加</p>
                        </div>
                        <div class="bg-blue-50 p-3 rounded">
                            <i class="fas fa-font text-blue-500 mr-2"></i>文本输入（字段1）
                            <button class="ml-auto text-sm text-blue-600">配置</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="p-6 border-t">
            <button class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 mr-2">保存草稿</button>
            <button class="bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700">发布表单</button>
        </div>
    </div>
</body>
</html>